package cn.stylefeng.guns.modular.order.mapper;

import cn.stylefeng.guns.modular.order.entity.OrderTransportDetailed;
import cn.stylefeng.guns.modular.order.model.params.OrderTransportDetailedParam;
import cn.stylefeng.guns.modular.order.model.result.OrderTransportDetailedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 货运订单明细表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2019-07-18
 */
public interface OrderTransportDetailedMapper extends BaseMapper<OrderTransportDetailed> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    List<OrderTransportDetailedResult> customList(@Param("paramCondition") OrderTransportDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") OrderTransportDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    Page<OrderTransportDetailedResult> customPageList(@Param("page") Page page, @Param("paramCondition") OrderTransportDetailedParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") OrderTransportDetailedParam paramCondition);

	List<OrderTransportDetailedResult> findListBySpec(@Param("paramCondition")OrderTransportDetailedParam param);

	List<OrderTransportDetailedResult> findTotaListBySpec(@Param("paramCondition")OrderTransportDetailedParam param);

	OrderTransportDetailedResult findBySpec(@Param("paramCondition")OrderTransportDetailedParam param);

	List<OrderTransportDetailedResult> findListBySpecWeiPei(@Param("paramCondition")OrderTransportDetailedParam param);

	boolean saveBatchList(@Param("list")List<OrderTransportDetailedParam> list);

	void deleteBySpec(@Param("paramCondition")OrderTransportDetailedParam detailedParam);

}
